#ifndef __OS_SHARED_MEMORY_H__
#define __OS_SHARED_MEMORY_H__

#ifdef __cplusplus
extern "C" {
#endif

	typedef void * HANDLE; 

	int os_shared_memory_init(char * mem_name, int size, HANDLE * memHandle);

	int os_shared_memory_write(HANDLE memHandle, int offset, int length, unsigned char * pBuffer);

	int os_shared_memory_read(HANDLE memHandle, int offset, int length, unsigned char * pBuffer);

	int os_shared_memory_uninit(HANDLE memHandle);


#ifdef __cplusplus
}
#endif

#endif